zpurpose("This is a DEMO-ONLY knowledge base that helps\ndiagnose diseases. Do NOT rely on this KB.\nInstead consult your doctor if you think\nyou are sick!")
zrule("rule #3",[ante("or",[["disease","=","flu"],["disease","=","cold"]])],[conse("prescription","=","rest and liquids",0.2),conse("prescription","=","aspirin",0.3),conse("prescription","=","vitamin C",0.4)])
zrule("rule #7",[ante("or",[["weight of person","fz=","heavy"],["height","fz=","tall"]])],[conse("large person","=","yes",0.8)])
zrange("temperature",95,110)
zrange("height",0,8)
zrange("weight of person",0,700)
zexplain("temperature","Put a thermometer in the patient's mouth. After about a minute,\nread the value. The temperature should around 98.6 degrees for a normal\nperson. A fever is indicated if the temperature is < 98.6. If temperature\nis > 101, the person is definitely sick!!! ")
zconclusion("disease","=","flu","The patient has the flu. You need to\nmake sure that s/he gets prompt treatment.")
zconclusion("disease","=","cold","The patient has a severe cold.....")
zconclusion("precautions","=","take precautions","The patient has a very high temperature. You should\ntry to gradually reduce the temperature so his\ninternal organs will work properly. Try aspirin and\na damp, luke-warm sponge.")
zconclusion("disease","=","spinal mentingitus","The disease is SPINAL MENINGITUS. This is a very serious\ndisease that can KILL or leave seriously incapacitated.\nYou should apply the ..... serum and have hospital\nconfinement....Also, isolate family members.")
zreason("temperature","Temperature helps determine if the patient is sick.")
zsymbolic("runny nose","Does the patient have a runny nose?",["yes","no"],"sgl")
zsymbolic("aches","Does the patient have aches and pains?",["yes","no"],"sgl")